package com.goddess.yeecolor.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.Toolbar;
import android.view.LayoutInflater;
import android.view.View;
import android.webkit.WebView;
import android.widget.TextView;

import com.goddess.yeecolor.R;
import com.goddess.yeecolor.base.BaseActivity;
import com.goddess.yeecolor.tools.MyUrl;

/**
 * 通知weiview
 */
public class NesWebViewActivity extends BaseActivity{
    private TextView mTitle;
    private Toolbar mToobar;
    private WebView mWebView;
    private View view;
    private String content;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        setTheme(R.style.AppTheme);
        super.onCreate(savedInstanceState);
        view= LayoutInflater.from(this).inflate(R.layout.activity_webview,null);
        setContentView(view);
        content=getIntent().getStringExtra("tag");
        initFindView();
    }

    @Override
    public void initOnClck() {

    }

    @Override
    public void initFindView() {
        mToobar= (Toolbar) findViewById(R.id.title_toobar);
        mTitle= (TextView) findViewById(R.id.title_content);
        mTitle.setText("消息详情");
        mToobar.setNavigationIcon(R.mipmap.back3x);
        mToobar.setNavigationOnClickListener((view)->{
            setFiish(this);
        });
        mWebView= (WebView) findViewById(R.id.webview);
        mWebView.getSettings().setJavaScriptEnabled(true);
        mWebView.loadUrl(MyUrl.imagurl+content);
    }

    @Override
    public void initData() {

    }
}
